.\" Copyright (C) 2014 Shang-Rong Cai. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $ DIDF: txtf2did.1    Rev. 0.1.1    2014-12-16T14:17+08:00 $
.TH TXTF2DID 1 2014-04-16 "DIDF 0.1" "Duplex Index Data File Manual"
.SH NAME
\fBtxtf2did\fP - text format data to did file
.SH SYNOPSIS
\fBtxtf2did\fP [-\fBv\fP] [-\fBf\fP \fIentry type\fP] 
[-\fBi\fP \fIindex type\fP] \fItext-file\fP \fIdid-file\fP

.SH DESCRIPTION
This utility is the convert a text format file to did file.  The text format
file has the format define as the following.  The first line 3 integers for
indicating the least upper bound of the first index, the second index, and the
amount of data entries.  The below lines of the first line is the duplex index
and data value.  The index is always in the range from 0 to the integer which
least than the least upper bound.  This utility supports single or double
precision floating point number only.  An example is like

.nf
5 5 9
0 0 1.23
1 1 2.34
2 2 3.45
3 3 4.56
4 4 5.67
3 1 6.78
0 4 7.89
4 3 8.90
2 3 9.01
.fi
.TP
\fB-f\fP \fIentry type\fP
Set entry type.
.br
\fB1\fP Single-precision floating-point number.
.br
\fB2\fP Double-precision floating-point number.
.TP
\fB-i\fP
Set index type.
.br
\fB4\fP 32-bits integer index.
.br
\fB8\fP 64-bits integer index.
.TP
\fB-v\fP
Produce verbose output.

.SH SEE ALSO
didview(1)
